package learn.builder;

/**
 * Created By  醉美柳舞之众星捧月
 *
 * @author 宋贤坤
 * @date 2019/3/16 14:03
 */
public class CourseActualBuilder extends CourseBuild {
    private Course course = new Course();

    @Override
    public void buildCourseName(String courseName) {
        courseName = courseName + "<== this is name";
        course.setCourseName(courseName);
    }

    @Override
    public void buildCourseQA(String courseQA) {
        courseQA = courseQA = "<== this is QA";
        course.setCourseQA(courseQA);
    }

    @Override
    public void buildCourseVideo(String courseVideo) {
        courseVideo = courseVideo + "<== this is video";
        course.setCourseVideo(courseVideo);
    }

    @Override
    public void buildCoursePPT(String coursePPT) {
        coursePPT = coursePPT + "<== this is PPT";
        course.setCoursePPT(coursePPT);
    }

    @Override
    public void buildCourseArticle(String courseArticle) {
        courseArticle = courseArticle + "<== this is article";
        course.setCourseArticle(courseArticle);
    }

    @Override
    public Course makeCourse() {
        return course;
    }
}
